/**
 * @Project Name:life-authentication-server
 * @Package Name:cn.hoofungson.life.authentication.server.repositories.user
 * @Since JDK 1.8
 */

package cn.hoofungson.blog.business.service.provider.repositories.user;

import cn.hoofungson.blog.business.service.provider.model.entity.user.UserPO;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @Description: UserRepository
 * @Author 胡松 hoofungson@163.com
 * @Date 2020-01-17 11:56
 * @Version V1.0
 */
public interface UserRepository extends JpaRepository<UserPO, Long> {

    /**
     * 根据用户名查询
     *
     * @param username
     * @return
     **/
    UserPO getByUsername(String username);
}
